.chat {
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  padding: 1rem 1rem 1.5rem 1rem;
}

.hover {
  background: var(--color-gray-50);
}

.hover * {
  pointer-events: none;
}

.field {
  border: 1px solid var(--color-input);
  border-radius: 0.375rem;
  transition: border 0.2s ease;

  input,
  textarea {
    border: none;
    padding-left: 0.625rem;
  }
  input::placeholder,
  textarea::placeholder {
    color: var(--color-gray-400);
    opacity: 1;
  }
  input {
    border-bottom: 1px solid var(--color-input);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-weight: 600;
  }

  &.focus {
    border-color: var(--color-primary);

    input {
      border-color: var(--color-primary);
    }
  }
}

@media screen and (max-width: 767px) {
  .chat {
    border-top: none;
    padding: 0;
  }

  .field {
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;

    input,
    textarea {
      background: var(--color-gray-50);
      border-radius: 0;

      @media (prefers-color-scheme: dark) {
        background: var(--color-gray-100);
      }
    }

    &.focus {
      border-color: var(--color-input);

      input {
        border-color: var(--color-input);
      }
    }
  }
}
